import request from '@/utils/request'

/**
 *登录接口获取token
 * @param {Object} data 登录需要的参数，需要mobile和password
 * @returns 请求的结果，promise对象
 */
export const login = data => request.post('/sys/login', data)

//  获取用户基本资料接口
export const getUserInfo = () => request.get('/sys/profile')

//  获取员工详细信息的接口
export const getUserDetailInfo = (id) => request.get(`/sys/user/${id}`)

